package com.xinqi.modules.prepare.question.convert;

import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.prepare.question.domain.PrepareQuestionFolderEntity;
import com.xinqi.modules.prepare.question.dto.req.PrepareQuestionFolderCreateDTO;
import com.xinqi.modules.prepare.question.dto.req.PrepareQuestionFolderUpdateDTO;
import com.xinqi.modules.prepare.question.dto.rsp.PrepareQuestionFolderResultDTO;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

/**
 * 备课区试题夹转换
 *
 * @author: system
 * @date: 2023/03/19
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class PrepareQuestionFolderConvert {
    public abstract PrepareQuestionFolderEntity create(PrepareQuestionFolderCreateDTO s);

    public abstract PrepareQuestionFolderEntity update(PrepareQuestionFolderUpdateDTO s, @MappingTarget PrepareQuestionFolderEntity t);

    public abstract PrepareQuestionFolderEntity update(PrepareQuestionFolderUpdateDTO s);

    public abstract PrepareQuestionFolderResultDTO convert(PrepareQuestionFolderEntity s);
}
